package com.hs.jhzd.repository;

import com.hs.jhzd.entity.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsRepository extends JpaRepository<Goods, String> {

  List<Goods> findByCategoryCodeAndVisible(String categoryCode, String visible);

  Goods findByCode(String spbh);
}
